package com.snow.fvmusic.service;

import com.snow.fvmusic.bo.CommentAndGreatParam;
import com.snow.fvmusic.generator.entities.Comment;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @Author ：snow
 * @Date ：Created in 2020-10-14
 * @Description：
 * @Modified By：
 * 对点赞，评论的持久化做一个异步的处理
 * @Version:
 */
public interface AsynchTaskService {
    /**
     * 异步处理评论
     */
    void commitComment(CommentAndGreatParam param);

    /**
     * 异步处理点赞
     */
    void commitGreat(CommentAndGreatParam param);

    /**
     * 更新文章的浏览数
     * @param articleIds
     */
    void incrArticlesViews(List<Long> articleIds, HttpServletRequest request);

    /**
     * 更新Pool的gust_count
     * @param poolIds
     */
    void incrMusicPoolsViews(Long poolIds, HttpServletRequest request);
}
